﻿// 项目：	Guan.CMS.Data - Guan.CMS
// 文件名：	IPublishedRepository.cs
// 
// 修改时间：2013-03-09 1:05
// 修改人：	Cooclsee

using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using Guan.CMS.Model.Entities;

namespace Guan.CMS.Data.Infrastructure
{
    public interface IPublishedRepository<T>:IRepository<T> where T : CommonPublishedModel,new()
    {
        IQueryable<T> GetList(bool showHidden = false);
        IQueryable<T> GetList(Expression<Func<T, bool>> where, bool showHidden = false);
        IEnumerable<T> GetAll(bool showHidden = false);
        IEnumerable<T> GetMany(Expression<Func<T, bool>> where, bool showHidden = false);
    }
}